package com.yjd.comm.easycard.model;

import com.yjd.comm.base.model.Model;
import com.yjd.comm.easycard.enums.ECActiveEnum;

/**
 * <b>description</b>：易借卡表模型<br>
 * <b>time</b>：2015-04-11 00:54:07 <br>
 * <b>author</b>：  Song devpage@126.com
 */
public class EasycardModel extends Model {

	/**
	* @Fields serialVersionUID
	*/
	private static final long serialVersionUID = 1L;
	//易借卡 卡号
	private Long id;
	//易借卡基础信息ID
	private Long easycard_basedata_id;
	//是否有效,默认有效1,无效0
	private Integer is_valid;
	//是否激活
	private Integer is_activate;
	//用户ID
	private Long user_id;
	//和网站绑定的帐号
	private String yjd_account;
	private Integer credit_level;
	private Double credit_money;
	
	private String credit_level_name;
	
	//是否可以,是否完成
	private Integer islock;
	//历史借款次数
	private Integer borrowed_times;
	//易借款额度
	private Double borrowed_money;
	//申请中借款
	private Double applying_money;
	//易借卡添加时间
	private Long add_time;
	//易借卡过期时间
	private Long retire_time;
	//信息更新时间
	private Long update_time;
	
	private String activate;
	public String getActivate() {
		return ECActiveEnum.getDesc(getIs_activate());
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getEasycard_basedata_id() {
		return easycard_basedata_id;
	}
	public void setEasycard_basedata_id(Long easycard_basedata_id) {
		this.easycard_basedata_id = easycard_basedata_id;
	}
	public Integer getIs_activate() {
		return is_activate;
	}
	public void setIs_activate(Integer is_activate) {
		this.is_activate = is_activate;
	}
	public Long getUser_id() {
		return user_id;
	}
	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}
	public Integer getCredit_level() {
		return credit_level;
	}
	public void setCredit_level(Integer credit_level) {
		this.credit_level = credit_level;
	}
	public Double getCredit_money() {
		return credit_money;
	}
	public void setCredit_money(Double credit_money) {
		this.credit_money = credit_money;
	}
	public Integer getIslock() {
		return islock;
	}
	public void setIslock(Integer islock) {
		this.islock = islock;
	}
	public Integer getBorrowed_times() {
		return borrowed_times;
	}
	public void setBorrowed_times(Integer borrowed_times) {
		this.borrowed_times = borrowed_times;
	}
	public Double getBorrowed_money() {
		return borrowed_money;
	}
	public void setBorrowed_money(Double borrowed_money) {
		this.borrowed_money = borrowed_money;
	}
	public Double getApplying_money() {
		return applying_money;
	}
	public void setApplying_money(Double applying_money) {
		this.applying_money = applying_money;
	}
	public Long getAdd_time() {
		return add_time;
	}
	public void setAdd_time(Long add_time) {
		this.add_time = add_time;
	}
	public Long getRetire_time() {
		return retire_time;
	}
	public void setRetire_time(Long retire_time) {
		this.retire_time = retire_time;
	}
	public Long getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Long update_time) {
		this.update_time = update_time;
	}
	public Integer getIs_valid() {
		return is_valid;
	}
	public void setIs_valid(Integer is_valid) {
		this.is_valid = is_valid;
	}
	public void setActivate(String activate) {
		this.activate = activate;
	}
	public String getCredit_level_name() {
		return credit_level_name;
	}
	public void setCredit_level_name(String credit_level_name) {
		this.credit_level_name = credit_level_name;
	}
	public String getYjd_account() {
		return yjd_account;
	}
	public void setYjd_account(String yjd_account) {
		this.yjd_account = yjd_account;
	}
	
}
